let userName=process.argv[2];
let pwd=process.argv[3];

let userInfor=userName+":"+pwd;

//得到Buffer实例
let buf=Buffer.from(userInfor,"utf-8");
//转换成base64字符串
let base64Str=buf.toString("base64");
console.log(base64Str)